this method is very limited by counting to 6 on the input arm and building a line with the biarm, those alone take up 11 instructions. i wouldn't be surprised if a build based around them goes down to ~17 instructions, but it feels like a genuine great solution on this is going to need to do something stupider.